CC    := gcc
CFLAG := -ggdb3 -Wall -Werror 
CFLAG += -Wl,-dn -lupdDispatchApi -L../api -I../api  -Wl,-dy

INCS := -I.
LIBS := -lpthread -lm 

vpath %.h .
vpath %.c .

OBJS:= cli-press.o

TARGET:= cli-press 

all:${TARGET}
	@echo
	@echo '*******************************************************'
	@echo 'make'
	@echo ' ${TARGET}'
	@echo 'successfully.'
	@-rm *.o
	@echo '*******************************************************'
	@echo

%.o:%.c
	${CC}  -c $< -o $@ ${CFLAG} ${INCS}

cli-press:${OBJS}
	${CC}  $^  -o $@  ${LIBS} ${CFLAG}

clean:
	@-rm -rf ${OBJS} 
	@-rm -rf ${TARGET} 
